PostgreSQL
PostgreSQL class provides mechanisms to interact with a PostgreSQL database. It implements Driver, Driver.Pool, and Driver.Transactional interfaces, offering functionalities such as connection pooling, executing queries, fetching data, and handling transactions.
The URL scheme designator can be either postgresql:// or postgres://. Each of the URL parts is optional.
postgresql:// postgresql://localhost postgresql://localhost:5433 postgresql://localhost/mydb
Parameters
The URL of the PostgreSQL database to connect to.
The username used for authentication.
The password used for authentication.
Optional pool configuration, defaulting to Driver.Pool.Options.
Optional registry of value encoders to use for encoding query parameters.
Constructors
Functions
Listens for notifications on a specified PostgreSQL channel and executes a callback for each received notification.
Listens for notifications on specified PostgreSQL channels and executes a callback for each received notification.
Validates the name of a PostgreSQL channel to ensure it adheres to the naming rules.